home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
C-D
/
DeveloperStax.cpt
/
Developer Stack 1.1
/
card_24253.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
1KB
|
73 lines
-- card: 24253 from stack: in.1
-- bmap block id: 0
-- flags: 0000
-- background id: 2612
-- name: sendSerial
-- part 1 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=82 top=302 right=324 bottom=182
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Install
----- HyperTalk script -----
on mouseUp
if the optionkey is down then pass mouseup
put installres(XCMD,sendSerial) into it
if it is empty then play oops
else answer it
end mouseUp
-- part contents for background part 13
----- text -----
19
-- part contents for background part 2
----- text -----
sendSerial
-- part contents for background part 10
----- text -----
Examples of use:
SendSerial "12345"
•sends the string 12345 out the modem port at 9600 baud (the default)
SendSerial "12345", 1200
•sends the string 12345 out the modem port at 1200 baud
SendSerial "^41^42hello"
•sends the string ABhello at 9600 baud (41 is hex for A; 42 is hex for B)
(^ is shift/6 and must be followed by exactly two hex digits)
SendSerial "hello^^"
•sends hello^ (use two ^^ if you
really want a ^)
SendSerial "abcd^45^0D^0D", 2400
•sends abcdE<CR><CR> at 2400 baud (<CR> = carriage return (Ascii 0D))
-- part contents for background part 3
----- text -----
Send characters out the serial port.